/**
 * 
 */
package veno;
import java.awt.Image;
import java.awt.Toolkit;


/**
 * @author Veno
 * @date 2013-10-31
 * @version 1.0
 */
public class Monster extends People{
	/*
	 * @autor Veno
	 * @use
	 */
	Coordinate coo = new Coordinate();
	public Image img;
	Monster(){
		int n = 10;
		level = n;
		HP = n * 80;
		attack = n * 6;
		defense = n * 2;
		img = Toolkit.getDefaultToolkit().getImage("image/monster.png");
	}
	Monster(int n){
		level = n;
		HP = n * 80;
		attack = n * 6;
		defense = n * 2;
		img = Toolkit.getDefaultToolkit().getImage("image/monster.png");
	}
	void monsterMove(){
		int temp = (int)(Math.random()*100) % 4;
		switch(temp){
		 case 0 :
			 coo.changePositionX(10);
			 break;
		 case 1 :
			 coo.changePositionX(-10);
			 break;
		 case 2 :
			 coo.changePositionY(10);
			 break;
		 case 3 :
			 coo.changePositionY(-10);
			 break;
		 }
	}
	public void setMonster(int n){
		level = n;
		HP = n * 80;
		attack = n * 6;
		defense = n * 2;
	}
}
